package play;

import org.antlr.v4.runtime.ParserRuleContext;

public abstract class Symbol {

    // 符号的名称
    protected String name = null;

    // 所属作用域
    protected Scope enclosingScope = null;

    // 可见性。比如 public 还是 private
    protected int visibility = 0;

    // Symbol 关联的 AST 节点
    protected ParserRuleContext ctx = null;

    public String getName() {
        return name;
    }

    public Scope getEnclosingScope() {
        return enclosingScope;
    }
}
